package org.skatiger.jrove.el.implicaitobject;

import java.beans.FeatureDescriptor;
import java.util.Map;

import javax.el.ELContext;

public class ViewImplicitObject extends ImplicitObject {
    private static final String NAME = "view".intern();

    public ViewImplicitObject() {
    }

    public FeatureDescriptor getDescriptor() {
        return makeDescriptor(NAME, "The view components map", Map.class);
    }

    public String getName() {
        return NAME;
    }

    public Object getValue(ELContext context) {
        return viewContext(context).getViewRoot().getComponentMap();
    }

}
